//
//  CALayer+organization.m
//  ZPIOSEducation
//
//  Created by mini1 on 2016/12/12.
//  Copyright © 2016年 mini1. All rights reserved.
//

#import "CALayer+organization.h"
#import <objc/runtime.h>


@implementation CALayer (organization)
// 添加一个分类的作用就是把设置的UIColor转化为CGColor
-(void)setBorderUIColor:(UIColor*)color
{
    self.borderColor = color.CGColor;
}

-(UIColor*)borderUIColor
{
    return [UIColor colorWithCGColor:self.borderColor];
}

@end
